package com.example.controller;

import com.example.pojo.MyProperties;
import com.example.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController

public class UserController {

    @Autowired
    private Person person;

    @Autowired
    private MyProperties myPropperties;

    @RequestMapping("user")
    public String select(){
       return person.toString();
    }

    @RequestMapping("select")
    public String sekect(){
        System.out.println("wwwwwwww");
        return myPropperties.toString();
    }


}
